package com.example.w2.impl;

import com.example.w2.service.UserInfoWebService;
import com.example.w2.pojo.UserInfo;

import javax.jws.WebService;



          /**
  9  *
  10  * @author
  11  *
  12  */
          // @WebService(
          // targetNamespace = "http://impl.service.demo.com/",
          // endpointInterface = "com.demo.service.impl.UserInfoWebServiceImpl")
          @WebService
 public class UserInfoWebServiceImpl implements UserInfoWebService {
              @Override
              public String getUserInfo(Integer userId) {
                                   System.out.println("---------------------------------userId--------------------------- : " + userId);
                 UserInfo userInfo = new UserInfo();
                 userInfo.setUserId(userId);
                 userInfo.setUserAccount("张姗姗");
                 userInfo.setUserPw("123456");
                 userInfo.setUserAge(26);
                 userInfo.setUserSex("男");
                 userInfo.setUserName("张姗姗");
                 return userInfo.toString();
              }

//             @Override
//     public UserInfo getUserInfo(Integer userId) {
//                 System.out.println("---------------------------------userId--------------------------- : " + userId);
//                 UserInfo userInfo = new UserInfo();
//                 userInfo.setUserId(userId);
//                 userInfo.setUserAccount("张姗姗");
//                 userInfo.setUserPw("123456");
//                 userInfo.setUserAge(26);
//                 userInfo.setUserSex("男");
//                 userInfo.setUserName("张姗姗");
//                 return userInfo;
//             }

         }
